FROM nginx

COPY ./dist /data

RUN rm /etc/nginx/conf.d/default.conf
RUN rm /etc/nginx/nginx.conf

COPY nginx.conf /etc/nginx/nginx.conf

ADD example-ui.conf /etc/nginx/conf.d/default.conf
ADD example-ui-common.conf /etc/nginx/conf.d/example-ui-common.conf
ADD example-ui-proxy.conf /etc/nginx/conf.d/example-ui-proxy.conf
ADD security-headers.conf /etc/nginx/conf.d/security-headers.conf

RUN /bin/bash -c 'echo init ok'
